{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent, textEllipsis } from '../../style';\nconst genBorderedStyle = token => {\n  const {\n    componentCls,\n    descriptionsSmallPadding,\n    descriptionsDefaultPadding,\n    descriptionsMiddlePadding,\n    descriptionsBg\n  } = token;\n  return {\n    [`&${componentCls}-bordered`]: {\n      [`${componentCls}-view`]: {\n        border: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '> table': {\n          tableLayout: 'auto',\n          borderCollapse: 'collapse'\n        }\n      },\n      [`${componentCls}-item-label, ${componentCls}-item-content`]: {\n        padding: descriptionsDefaultPadding,\n        borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '&:last-child': {\n          borderInlineEnd: 'none'\n        }\n      },\n      [`${componentCls}-item-label`]: {\n        backgroundColor: descriptionsBg,\n        '&::after': {\n          display: 'none'\n        }\n      },\n      [`${componentCls}-row`]: {\n        borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '&:last-child': {\n          borderBottom: 'none'\n        }\n      },\n      [`&${componentCls}-middle`]: {\n        [`${componentCls}-item-label, ${componentCls}-item-content`]: {\n          padding: descriptionsMiddlePadding\n        }\n      },\n      [`&${componentCls}-small`]: {\n        [`${componentCls}-item-label, ${componentCls}-item-content`]: {\n          padding: descriptionsSmallPadding\n        }\n      }\n    }\n  };\n};\nconst genDescriptionStyles = token => {\n  const {\n    componentCls,\n    descriptionsExtraColor,\n    descriptionItemPaddingBottom,\n    descriptionsItemLabelColonMarginRight,\n    descriptionsItemLabelColonMarginLeft,\n    descriptionsTitleMarginBottom\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBorderedStyle(token)), {\n      [`&-rtl`]: {\n        direction: 'rtl'\n      },\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        alignItems: 'center',\n        marginBottom: descriptionsTitleMarginBottom\n      },\n      [`${componentCls}-title`]: Object.assign(Object.assign({}, textEllipsis), {\n        flex: 'auto',\n        color: token.colorText,\n        fontWeight: token.fontWeightStrong,\n        fontSize: token.fontSizeLG,\n        lineHeight: token.lineHeightLG\n      }),\n      [`${componentCls}-extra`]: {\n        marginInlineStart: 'auto',\n        color: descriptionsExtraColor,\n        fontSize: token.fontSize\n      },\n      [`${componentCls}-view`]: {\n        width: '100%',\n        borderRadius: token.borderRadiusLG,\n        table: {\n          width: '100%',\n          tableLayout: 'fixed'\n        }\n      },\n      [`${componentCls}-row`]: {\n        '> th, > td': {\n          paddingBottom: descriptionItemPaddingBottom\n        },\n        '&:last-child': {\n          borderBottom: 'none'\n        }\n      },\n      [`${componentCls}-item-label`]: {\n        color: token.colorText,\n        fontWeight: 'normal',\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        textAlign: `start`,\n        '&::after': {\n          content: '\":\"',\n          position: 'relative',\n          top: -0.5,\n          marginInline: `${descriptionsItemLabelColonMarginLeft}px ${descriptionsItemLabelColonMarginRight}px`\n        },\n        [`&${componentCls}-item-no-colon::after`]: {\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-no-label`]: {\n        '&::after': {\n          margin: 0,\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-content`]: {\n        display: 'table-cell',\n        flex: 1,\n        color: token.colorText,\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        wordBreak: 'break-word',\n        overflowWrap: 'break-word'\n      },\n      [`${componentCls}-item`]: {\n        paddingBottom: 0,\n        verticalAlign: 'top',\n        '&-container': {\n          display: 'flex',\n          [`${componentCls}-item-label`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          },\n          [`${componentCls}-item-content`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          }\n        }\n      },\n      '&-middle': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingSM\n          }\n        }\n      },\n      '&-small': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingXS\n          }\n        }\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Descriptions', token => {\n  const descriptionsBg = token.colorFillAlter;\n  const descriptionsTitleMarginBottom = token.fontSizeSM * token.lineHeightSM;\n  const descriptionsExtraColor = token.colorText;\n  const descriptionsSmallPadding = `${token.paddingXS}px ${token.padding}px`;\n  const descriptionsDefaultPadding = `${token.padding}px ${token.paddingLG}px`;\n  const descriptionsMiddlePadding = `${token.paddingSM}px ${token.paddingLG}px`;\n  const descriptionItemPaddingBottom = token.padding;\n  const descriptionsItemLabelColonMarginRight = token.marginXS;\n  const descriptionsItemLabelColonMarginLeft = token.marginXXS / 2;\n  const descriptionToken = mergeToken(token, {\n    descriptionsBg,\n    descriptionsTitleMarginBottom,\n    descriptionsExtraColor,\n    descriptionItemPaddingBottom,\n    descriptionsSmallPadding,\n    descriptionsDefaultPadding,\n    descriptionsMiddlePadding,\n    descriptionsItemLabelColonMarginRight,\n    descriptionsItemLabelColonMarginLeft\n  });\n  return [genDescriptionStyles(descriptionToken)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","textEllipsis","genBorderedStyle","token","componentCls","descriptionsSmallPadding","descriptionsDefaultPadding","descriptionsMiddlePadding","descriptionsBg","border","lineWidth","lineType","colorSplit","tableLayout","borderCollapse","padding","borderInlineEnd","backgroundColor","display","borderBottom","genDescriptionStyles","descriptionsExtraColor","descriptionItemPaddingBottom","descriptionsItemLabelColonMarginRight","descriptionsItemLabelColonMarginLeft","descriptionsTitleMarginBottom","Object","assign","direction","alignItems","marginBottom","flex","color","colorText","fontWeight","fontWeightStrong","fontSize","fontSizeLG","lineHeight","lineHeightLG","marginInlineStart","width","borderRadius","borderRadiusLG","table","paddingBottom","textAlign","content","position","top","marginInline","margin","wordBreak","overflowWrap","verticalAlign","paddingSM","paddingXS","colorFillAlter","fontSizeSM","lineHeightSM","paddingLG","marginXS","marginXXS","descriptionToken"],"sources":["/data/messenger.client/node_modules/antd/es/descriptions/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent, textEllipsis } from '../../style';\nconst genBorderedStyle = token => {\n  const {\n    componentCls,\n    descriptionsSmallPadding,\n    descriptionsDefaultPadding,\n    descriptionsMiddlePadding,\n    descriptionsBg\n  } = token;\n  return {\n    [`&${componentCls}-bordered`]: {\n      [`${componentCls}-view`]: {\n        border: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '> table': {\n          tableLayout: 'auto',\n          borderCollapse: 'collapse'\n        }\n      },\n      [`${componentCls}-item-label, ${componentCls}-item-content`]: {\n        padding: descriptionsDefaultPadding,\n        borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '&:last-child': {\n          borderInlineEnd: 'none'\n        }\n      },\n      [`${componentCls}-item-label`]: {\n        backgroundColor: descriptionsBg,\n        '&::after': {\n          display: 'none'\n        }\n      },\n      [`${componentCls}-row`]: {\n        borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n        '&:last-child': {\n          borderBottom: 'none'\n        }\n      },\n      [`&${componentCls}-middle`]: {\n        [`${componentCls}-item-label, ${componentCls}-item-content`]: {\n          padding: descriptionsMiddlePadding\n        }\n      },\n      [`&${componentCls}-small`]: {\n        [`${componentCls}-item-label, ${componentCls}-item-content`]: {\n          padding: descriptionsSmallPadding\n        }\n      }\n    }\n  };\n};\nconst genDescriptionStyles = token => {\n  const {\n    componentCls,\n    descriptionsExtraColor,\n    descriptionItemPaddingBottom,\n    descriptionsItemLabelColonMarginRight,\n    descriptionsItemLabelColonMarginLeft,\n    descriptionsTitleMarginBottom\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBorderedStyle(token)), {\n      [`&-rtl`]: {\n        direction: 'rtl'\n      },\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        alignItems: 'center',\n        marginBottom: descriptionsTitleMarginBottom\n      },\n      [`${componentCls}-title`]: Object.assign(Object.assign({}, textEllipsis), {\n        flex: 'auto',\n        color: token.colorText,\n        fontWeight: token.fontWeightStrong,\n        fontSize: token.fontSizeLG,\n        lineHeight: token.lineHeightLG\n      }),\n      [`${componentCls}-extra`]: {\n        marginInlineStart: 'auto',\n        color: descriptionsExtraColor,\n        fontSize: token.fontSize\n      },\n      [`${componentCls}-view`]: {\n        width: '100%',\n        borderRadius: token.borderRadiusLG,\n        table: {\n          width: '100%',\n          tableLayout: 'fixed'\n        }\n      },\n      [`${componentCls}-row`]: {\n        '> th, > td': {\n          paddingBottom: descriptionItemPaddingBottom\n        },\n        '&:last-child': {\n          borderBottom: 'none'\n        }\n      },\n      [`${componentCls}-item-label`]: {\n        color: token.colorText,\n        fontWeight: 'normal',\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        textAlign: `start`,\n        '&::after': {\n          content: '\":\"',\n          position: 'relative',\n          top: -0.5,\n          marginInline: `${descriptionsItemLabelColonMarginLeft}px ${descriptionsItemLabelColonMarginRight}px`\n        },\n        [`&${componentCls}-item-no-colon::after`]: {\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-no-label`]: {\n        '&::after': {\n          margin: 0,\n          content: '\"\"'\n        }\n      },\n      [`${componentCls}-item-content`]: {\n        display: 'table-cell',\n        flex: 1,\n        color: token.colorText,\n        fontSize: token.fontSize,\n        lineHeight: token.lineHeight,\n        wordBreak: 'break-word',\n        overflowWrap: 'break-word'\n      },\n      [`${componentCls}-item`]: {\n        paddingBottom: 0,\n        verticalAlign: 'top',\n        '&-container': {\n          display: 'flex',\n          [`${componentCls}-item-label`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          },\n          [`${componentCls}-item-content`]: {\n            display: 'inline-flex',\n            alignItems: 'baseline'\n          }\n        }\n      },\n      '&-middle': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingSM\n          }\n        }\n      },\n      '&-small': {\n        [`${componentCls}-row`]: {\n          '> th, > td': {\n            paddingBottom: token.paddingXS\n          }\n        }\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Descriptions', token => {\n  const descriptionsBg = token.colorFillAlter;\n  const descriptionsTitleMarginBottom = token.fontSizeSM * token.lineHeightSM;\n  const descriptionsExtraColor = token.colorText;\n  const descriptionsSmallPadding = `${token.paddingXS}px ${token.padding}px`;\n  const descriptionsDefaultPadding = `${token.padding}px ${token.paddingLG}px`;\n  const descriptionsMiddlePadding = `${token.paddingSM}px ${token.paddingLG}px`;\n  const descriptionItemPaddingBottom = token.padding;\n  const descriptionsItemLabelColonMarginRight = token.marginXS;\n  const descriptionsItemLabelColonMarginLeft = token.marginXXS / 2;\n  const descriptionToken = mergeToken(token, {\n    descriptionsBg,\n    descriptionsTitleMarginBottom,\n    descriptionsExtraColor,\n    descriptionItemPaddingBottom,\n    descriptionsSmallPadding,\n    descriptionsDefaultPadding,\n    descriptionsMiddlePadding,\n    descriptionsItemLabelColonMarginRight,\n    descriptionsItemLabelColonMarginLeft\n  });\n  return [genDescriptionStyles(descriptionToken)];\n});"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AAC1D,MAAMC,gBAAgB,GAAGC,KAAK,IAAI;EAChC,MAAM;IACJC,YAAY;IACZC,wBAAwB;IACxBC,0BAA0B;IAC1BC,yBAAyB;IACzBC;EACF,CAAC,GAAGL,KAAK;EACT,OAAO;IACL,CAAE,IAAGC,YAAa,WAAU,GAAG;MAC7B,CAAE,GAAEA,YAAa,OAAM,GAAG;QACxBK,MAAM,EAAG,GAAEN,KAAK,CAACO,SAAU,MAAKP,KAAK,CAACQ,QAAS,IAAGR,KAAK,CAACS,UAAW,EAAC;QACpE,SAAS,EAAE;UACTC,WAAW,EAAE,MAAM;UACnBC,cAAc,EAAE;QAClB;MACF,CAAC;MACD,CAAE,GAAEV,YAAa,gBAAeA,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